using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Contact : System.Web.UI.Page
{
    private string addressSeattle = "1234, Main Street<br />Seattle<br />WA<br /><a href='mailto:Seattle@Adventure-Works.com' style='color:#0e0e6c'>Seattle@Adventure-Works.com</a>";
    private string addressNewYork = "5678, Main Street<br />New York<br />NY<br /><a href='mailto:NYC@Adventure-Works.com' style='color:#0e0e6c'>NYC@Adventure-Works.com</a>";
    private string addressLondon = "1234, High Street<br />London<br />UK<br /><a href='mailto:London@Adventure-Works.com' style='color:#0e0e6c'>London@Adventure-Works.com</a>";
    private string addressDublin = "5678, High Street<br />Dublin<br />Eire<br /><a href='mailto:Dublin@Adventure-Works.com' style='color:#0e0e6c'>Dublin@Adventure-Works.com</a>";
    private string addressBarcelona = "Calle Major 1234<br />Barcelona<br />Espana<br /><a href='mailto:Barcelona@Adventure-Works.com' style='color:#0e0e6c'>Barcelona@Adventure-Works.com</a>";
    private string addressParis = "5678, Grande Rue<br />Paris<br />France<br /><a href='mailto:Paris@Adventure-Works.com' style='color:#0e0e6c'>Paris@Adventure-Works.com</a>";
    private string addressMorzine = "1234, rue des Alpes<br />Morzine<br />France<br /><a href='mailto:Morzine@Adventure-Works.com' style='color:#0e0e6c'>Morzine@Adventure-Works.com</a>";
    

    protected void Page_Load(object sender, EventArgs e)
    {
		lblAddresses.Text =
					addressBarcelona
					+ "<br /><br />" + addressDublin
					+ "<br /><br />" + addressLondon
					+ "<br /><br />" + addressMorzine
					+ "<br /><br />" + addressNewYork
					+ "<br /><br />" + addressParis
					+ "<br /><br />" + addressSeattle;
    }
	protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (RadioButtonList1.SelectedValue)
		{
			case "sortCity":
				lblAddresses.Text =
					addressBarcelona
					+ "<br /><br />" + addressDublin
					+ "<br /><br />" + addressLondon
					+ "<br /><br />" + addressMorzine
					+ "<br /><br />" + addressNewYork
					+ "<br /><br />" + addressParis
					+ "<br /><br />" + addressSeattle;
				break;
			case "groupRegion":
				lblAddresses.Text =
					"<b>Europe</b><hr />"
					+ addressBarcelona
					+ "<br /><br />" + addressDublin
					+ "<br /><br />" + addressLondon
					+ "<br /><br />" + addressMorzine
					+ "<br /><br />" + addressParis
					+ "<br /><br /><hr /><b>USA</b><hr />"
					+ addressNewYork
					+ "<br /><br />" + addressSeattle;
				break;
			default:
				break;
		}
	}
}
